/**
 * 
 */
package name.marz.to.go.btree.ui.swing;

import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JTextField;

/**
 * @author masaru-gotou
 *
 */
public class DeleteControlPanel extends JPanel {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JTextField key;
	private JButton btn;
	
	public DeleteControlPanel() {
		key = new JTextField(5);
		key.setToolTipText("key");
		btn = new JButton("Delete");
		btn.setToolTipText("Delete from Tree");
		
		add(key);
		add(btn);
	}
	public String getKey() {
		return key.getText();
	}
	public void addDeleteActionListener(ActionListener l) {
		btn.addActionListener(l);
	}

}
